html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: url("../img/background.jpg");
  background-attachment: fixed;
  background-size: cover;
}

header {
  text-align: center;
  background: rgba(128, 128, 128, 0.795);
  width: 400px;
  margin: auto;
  border-radius: 50px;
}

.title {
  color: white;
  font-weight: 800;
  font-size: 35px;
  margin: 10px 0;
  padding: 0.6em 0;
}

main {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameboard {
  /* width: 70vw;
  height: 46vw; */
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
  /* border: black solid 2px; */
  /* border-radius: 10px; */
  background: rgb(133, 170, 69);
  z-index: 0;
}

#totalbet {
  color: white;
  position: absolute;
  left: 34.5%;
  top: 12%;
}
#dealer {
  position: absolute;
  /* height: 14%;
  width: 28vw; */
  height: 17%;
  width: 42vw;
  background: rgba(245, 245, 245, 0.349);
  border-radius: 5px;
  left: 29%;
  top: 35%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.dealercards {
  height: 100%;
  width: 16%;
  background-size: contain;
  background-repeat: no-repeat;
}
.dealercards img {
  position: absolute;
  height: 100%;
  animation: rotate 1s linear;
  animation-fill-mode: forwards;
}

.player {
  color: white;
  font-weight: bold;
  position: absolute;
  /* height: 22%;
  width: 12vw; */
  height: 24%;
  width: 17vw;
  border-radius: 5px;
}
.plselect {
  /*todo pending select effect*/
  background: rgb(211, 210, 210);
  border: black solid 1px;
}

.msg {
  position: absolute;
  background: white;
  color: black;
  font-weight: none;
  font-size: 1vw;
  border-radius: 40%;
  min-width: 40%;
  text-align: center;
  padding: 0.3vw;
  opacity: 0;

  /* border: black solid 2px; */
}

.msgpop {
  animation: fadein 3.5s linear;
  animation-fill-mode: forwards;
}
.msgshow {
  animation: msgshow 3.5s linear;
  animation-fill-mode: forwards;
}
.msgright {
  top: -20%;
  left: -42%;
}
.msgleft {
  top: 0%;
  right: -40%;
}
.msggamer {
  top: -23%;
  left: -26%;
}

.playercards {
  margin-top: 0.5vw;
  height: 80%;
  text-align: center;
  background: rgba(185, 185, 185, 0.719);
  border-radius: 3px;
  padding: 2px;
}
.playercards img {
  /* width: 48%; */
  width: 50%;
  height: 100%;
  display: inline-block;
  margin: auto;
}
.playerfund {
  color: white;
  font-weight: bold;
  margin: 0.5vw 1vw 0 1vw;
}

#player0 {
  top: 7%;
  right: 11%;
}
#player1 {
  top: 48%;
  right: 5%;
}
#player2 {
  top: 60%;
  left: 40%;
}
#player3 {
  top: 48%;
  left: 5%;
}
#player4 {
  top: 7%;
  left: 11%;
}

.ctlbuttons {
  position: absolute;
  bottom: 2.5%;
  left: 28.5%;
  width: 40%;
  margin: 0 auto;
  text-align: center;
}
.hidden {
  display: none;
}

#startbtn {
  /* display: none; */
  font-size: 1.5vw;
  padding: 0.5vw 1.2vw;
  border-radius: 10px;
}

#betctldiv {
  /* border: black solid 2px; */
}
#betctldiv button {
  font-size: 1.5vw;
  padding: 0.5vw 1.2vw;
  border-radius: 10px;
  margin: auto 0.8vw;
}
.scalediv {
  position: absolute;
  top: -15%;
  right: -50%;
}
#scalevalue {
  color: white;
  font-weight: bold;
  text-align: left;
}
#myRange {
  width: 15vw;
}
#resetctldiv {
}
#resetctldiv button {
  font-size: 1.5vw;
  padding: 0.5vw 1.2vw;
  border-radius: 10px;
  margin: auto 0.8vw;
}

.gamemsg {
  position: relative;
  height: 28%;
  background: rgba(128, 128, 128, 0.9);
  width: 40%;
  border-radius: 15px;
  z-index: 1;
  color: white;
  margin: auto;
  margin-top: 2%;
  /* animation: movein 5s ease; */
}
/* .gamemsg h1 {
    margin: 12% auto;
    width: 38%;
    padding: 1.5%;
    border-radius: 5px;
    border: black solid 2px;
} */
#gamemsgcon {
  position: absolute;
  width: 90%;
  margin: auto;
  height: 80%;
  font-size: 1.6vw;
  color: black;
  padding: 0.2vw 0.5vw;
  background: whitesmoke;
  border-radius: 5px;
  top: 8%;
  left: 3%;
  white-space: pre-wrap;
}

@keyframes rotate {
  0% {
    transform: rotateY(0.75turn);
  }
  100% {
    transform: rotateY(1turn);
  }
}
@keyframes movein {
  0% {
    opacity: 0;
    top: 10%;
  }
  100% {
    opacity: 1;
    top: 6%;
  }
}

@keyframes fadein {
  0% {
    opacity: 0;
    top: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes msgshow {
  0% {
    opacity: 0;
    top: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
